/**
 * 岗位接口
 */
const Router = require("koa-router");
const router = new Router();
const { SystemLogininfoController } = require("../controller/sys_logininfor");
const passport = require("koa-passport");
const auth = require("../middleware/auth.js");

router.post(
  "/v1/system/logininfor/delete",
  passport.authenticate("jwt", { session: false }),
  auth("system:logininfor:delete"),
  SystemLogininfoController.sysLogininfoDel
);

router.post(
  "/v1/system/logininfor/deleteByIds",
  passport.authenticate("jwt", { session: false }),
  auth("system:logininfor:delete"),
  SystemLogininfoController.sysLogininfoDelByIds
);

router.get(
  "/v1/system/logininfor/list",
  passport.authenticate("jwt", { session: false }),
  auth("system:logininfor:query"),
  SystemLogininfoController.sysLogininfoList
);

router.post(
  "/v1/system/logininfor/export",
  passport.authenticate("jwt", { session: false }),
  auth("system:logininfor:export"),
  SystemLogininfoController.sysLogininfoExport
);

router.delete(
  "/v1/system/logininfor/clean",
  passport.authenticate("jwt", { session: false }),
  auth("system:logininfor:clean"),
  SystemLogininfoController.sysLogininfoClean
);
module.exports = router;
